import request from "../utils/request"

export default{
    AdminLogin(Aid){
        return request({
            url:'/admin/AdminLogin',
            method:'post',
            params:{
                Aid:Aid,
            }
        })
    },
    selectAllRecord(){
        return request({
            url:'/admin/selectAllRecord',
            method:'post',
        })
    },
    selectAbsentUser(){
        return request({
            url:'/admin/selectAbsentUser',
            method:'post',
        })
    },
    makeUserOn(Uid){
        return request({
            url:'/admin/makeUserOn',
            method:'post',
            params:{
                Uid:Uid,
            }
        })
    },
    makeUserOff(Uid){
        return request({
            url:'/admin/makeUserOff',
            method:'post',
            params:{
                Uid:Uid,
            }
        })
    },
    selectAllUser(){
        return request({
            url:'/admin/selectAllUser',
            method:'post',
        })
    },


    UserLogin(Uid){
        return request({
            url:'/user/UserLogin',
            method:'post',
            params:{
                Uid:Uid
            }
        })
    },
    selectAllRecordListOfMine(Uid){
        return request({
            url:'/user/selectAllRecordListOfMine',
            method:'post',
            params:{
                Uid:Uid
            }
        })
    },
    updateSelf(user){
        return request({
            url:'/user/updateSelf',
            method:'post',
            data:user
        })
    },
    insertRecord(record){
        return request({
            url:'/user/insertRecord',
            method:'post',
            data:record
        })
    },
    getUserInfo(Uid){
        return request({
            url:'/user/getUserInfo',
            method:'post',
            params:{
                Uid:Uid
            }
        })
    },
    addUser(user){
        return request({
            url:'/admin/addUser',
            method:'post',
            data:user
        })
    },
} 